

if(contains(DEFINES,APP_BUILD_ARM)){
###---------配置 交叉编译 依赖---------------

message("Host is ARM ,请选择arm-qt构建套件 ")
message("编译Arm程序 DEFINES += APP_BUILD_ARM")


#    HEADERS += main/data/CanDataWrap.h \
#               main/gyro/GyroDataWrap.h \
#               main/gyro/GyroDevice.h \

#    SOURCES += main/data/CanDataWrap.cpp \
#               main/gyro/GyroDataWrap.cpp \
#               main/gyro/GyroDevice.cpp \



QT_APP_BUILD_ROOT=/home/wmx/odm_yb/buildroot-201611/target/user_rootfs_misc/kkcluster-new

INCLUDEPATH += \
$$QT_APP_BUILD_ROOT/../sdk\
$$QT_APP_BUILD_ROOT/../sdk/include\
$$QT_APP_BUILD_ROOT/../sdk/include/android\
$$QT_APP_BUILD_ROOT/../sdk/include/disp2 \
$$QT_APP_BUILD_ROOT/../sdk/media\
$$QT_APP_BUILD_ROOT/../sdk/camera\
$$QT_APP_BUILD_ROOT/../sdk/include/utils . ./src/\
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/libcedarc/include\
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/MUXER/include/include/ \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/BASE/include/include\
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/PARSER/include/include/\
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/STREAM/include/include\
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/PLAYER/include/ \
$$QT_APP_BUILD_ROOT/../../../../tools/pack/chips/sun8iw11p1/hal/gpu/fbdev/include\
$$QT_APP_BUILD_ROOT/../../../../tools/pack/chips/sun8iw11p1/hal/gpu/fbdev/include/GLES2\
$$QT_APP_BUILD_ROOT/../../../external-packages/gpu/mali400/fbdev/header_files/include/\


DEPENDPATH += \
$$QT_APP_BUILD_ROOT/../sdk \
$$QT_APP_BUILD_ROOT/../sdk/include \
$$QT_APP_BUILD_ROOT/../sdk/include/android\
$$QT_APP_BUILD_ROOT/../sdk/include/disp2 \
$$QT_APP_BUILD_ROOT/../sdk/media \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include \
$$QT_APP_BUILD_ROOT/../sdk/camera \
$$QT_APP_BUILD_ROOT/../sdk/include/utils . ./src/ \
$$QT_APP_BUILD_ROOT/../../../external-packages/gpu/mali400/fbdev/header_files/include/ \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/libcedarc/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/MUXER/include/include/ \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/BASE/include/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/PARSER/include/include/ \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/DEMUX/STREAM/include/include \
$$QT_APP_BUILD_ROOT/../sdk/cedarx/include/PLAYER/include/ \
$$QT_APP_BUILD_ROOT/../../../../tools/pack/chips/sun8iw11p1/hal/gpu/fbdev/include
$$QT_APP_BUILD_ROOT/../../../../tools/pack/chips/sun8iw11p1/hal/gpu/fbdev/include/GLES2

unix:!macx: LIBS += \
-L$$QT_APP_BUILD_ROOT/../dbuscom/ -lawcom \
-L$$QT_APP_BUILD_ROOT/../sdk/ -lsdk \
-L$$QT_APP_BUILD_ROOT/../sdk/libs/ -lmdas -lsdk_compose  -lsdk_disp  -lsdk_dvr   -lsdk_player  -lsdk_tr \
-L../../../../tools/pack/chips/sun8iw11p1/hal/gpu/fbdev/lib/ -lGLESv2 \
-L$$QT_APP_BUILD_ROOT/../sdk/cedarx/lib/ -Wl,--no-undefined  -lcdx_playback -lcdx_common -laencoder -lawrecorder -lxplayer   -lcdx_muxer \
-lcdx_parser -lcdc_vdecoder -lcdx_stream   -lcdc_vencoder -lcdc_ve  -lcdc_sdecoder -lcdc_base -lcdc_memory -ladecoder -laencoder\
-lxmetadataretriever -lcdx_base -lrt -lpthread -lz -lcrypto -lssl -ltinyalsa

#DEFINES += QT_ROTATE_APP
DEFINES += CDX_V27 HAVE_PTHREADS SUPPORT_NEW_DRIVER HAVE_SYS_UIO_H ANDROID_SMP=1 __ARM_HAVE_DMB __ARM_HAVE_LDREX_STREX __ARM_HAVE_LDREXD \
           __ARM_HAVE_VFP __ARM_HAVE_NEON OPTION_CC_GNUEABIHF=1 OPTION_CC_GNUEABI=2 OPTION_CC_UCGNUEABI=3 \
           _GNU_SOURCE OPTION_CC_GNUEABIHF=1 OPTION_CC_GNUEABI=2 OPTION_CC_UCGNUEABI=3 OPTION_CC_LINUX_UCGNUEABI=4 \
            OPTION_CC_LINUX_MUSLGNUEABI=5 OPTION_CC_LINUX_MUSLGNUEABI64=6 OPTION_OS_ANDROID=1 OPTION_OS_LINUX=2 OPTION_OS_VERSION_ANDROID_4_2=1 \
            OPTION_OS_VERSION_ANDROID_4_4=2 OPTION_OS_VERSION_ANDROID_5_0=3 OPTION_OS_VERSION_ANDROID_6_0=4 OPTION_MEMORY_DRIVER_SUNXIMEM=1 \
            OPTION_MEMORY_DRIVER_ION=2 OPTION_PRODUCT_PAD=1 OPTION_PRODUCT_TVBOX=2 OPTION_PRODUCT_OTT_CMCC=3 OPTION_PRODUCT_IPTV=4 \
            OPTION_PRODUCT_DVB=5 OPTION_PRODUCT_LOUDSPEAKER=6 OPTION_CHIP_R8=1 OPTION_CHIP_R16=2 OPTION_CHIP_C500=3 OPTION_CHIP_R58=4 \
            OPTION_CHIP_R18=5 OPTION_CHIP_T2=6 OPTION_CHIP_T3=7 OPTION_DRAM_INTERFACE_DDR1_16BITS=1 OPTION_DRAM_INTERFACE_DDR1_32BITS=2 \
            OPTION_DRAM_INTERFACE_DDR2_16BITS=3 OPTION_DRAM_INTERFACE_DDR2_32BITS=4 OPTION_DRAM_INTERFACE_DDR3_16BITS=5 \
            OPTION_DRAM_INTERFACE_DDR3_32BITS=6 OPTION_DRAM_INTERFACE_DDR3_64BITS=7 OPTION_CMCC_NO=0 OPTION_CMCC_YES=1 OPTION_DTV_NO=0 \
            OPTION_DTV_YES=1 OPTION_ALI_YUNOS_NO=0 OPTION_ALI_YUNOS_YES=1 OPTION_IS_CAMERA_DECODER_NO=0 OPTION_IS_CAMERA_DECODER_YES=1 \
            OPTION_VE_IPC_DISABLE=1 OPTION_VE_IPC_ENABLE=2 OPTION_NO_DEINTERLACE=0 OPTION_HW_DEINTERLACE=1 OPTION_SW_DEINTERLACE=2 \
            LINUX_VERSION_3_4=1 LINUX_VERSION_3_10=2 DROP_DELAY_FRAME_NONE=0 DROP_DELAY_FRAME_720P=1 DROP_DELAY_FRAME_4K=2 ZEROCOPY_PIXEL_FORMAT_NONE=0 \
            ZEROCOPY_PIXEL_FORMAT_YUV_MB32_420=1 ZEROCOPY_PIXEL_FORMAT_YV12=2 ZEROCOPY_PIXEL_FORMAT_NV21=3 GPU_Y16_C16_ALIGN=1 GPU_Y32_C16_ALIGN=2 \
            GPU_Y16_C8_ALIGN=3 ZEROCOPY_HAL_PIXEL_FORMAT_AW_YUV_PLANNER420=1 ZEROCOPY_HAL_PIXEL_FORMAT_AW_YVU_PLANNER420=2 DEINTERLACE_FORMAT_MB32_12=1 \
            DEINTERLACE_FORMAT_NV=2 DEINTERLACE_FORMAT_NV21=3 DEINTERLACE_FORMAT_NV12=4 OUTPUT_PIXEL_FORMAT_NV21=1 OUTPUT_PIXEL_FORMAT_YV12=2 \
            OUTPUT_PIXEL_FORMAT_MB32=3 GPU_ALIGN_STRIDE_16=1 GPU_ALIGN_STRIDE_32=2 OPTION_HAVE_ZLIB=1 OPTION_NO_ZLIB=2 OPTION_HAVE_SSL=1 \
            OPTION_NO_SSL=2 OPTION_HAVE_LIVE555=1 OPTION_NO_LIVE555=2 CONFIG_CC=4 CONFIG_OS=2 CONFIG_CHIP=7 CONFIG_ALI_YUNOS=0 CONFIG_OS_VERSION=2 \
            CONFIG_TARGET_PRODUCT= CONFIG_PRODUCT=2 CONFIG_HAVE_ZLIB=1 CONFIG_HAVE_SSL=1 CONFIG_HAVE_LIVE555=2 CONFIG_MEMORY_DRIVER=2 CONFIG_DRAM_INTERFACE=6 \
            CONFIG_VE_IPC=1 CONFIG_CMCC=0 CONFIG_DTV=0 CONFIG_IS_CAMERA_DECODER=0 CONFIG_DEINTERLACE=0 GPU_TYPE_MALI=1 \
            CONFIG_ARM_VERSION= ENABLE_SUBTITLE_DISPLAY_IN_CEDARX=0 DTV=no LINUX_VERSION=2 USE_NEW_BDMV_STREAM=0 PLAYREADY_DRM_INVOKE=0 H265_4K_CHECK_SCALE_DOWN=1 \
            NON_H265_4K_NOT_SCALE_DOWN=0 SUPPORT_H265=0 ANTUTU_NOT_SUPPORT=1 ENABLE_MEDIA_BOOST=1 DROP_DELAY_FRAME=2 ROTATE_PIC_HW=0 VE_PHY_OFFSET=0x40000000 \
            ZEROCOPY_PIXEL_FORMAT=3 GPU_Y_C_ALIGN=1 SEND_3_BLACK_FRAME_TO_GPU=0 ZEROCOPY_DYNAMIC_CHECK=1 GRALLOC_PRIV=0 VIDEO_DIRECT_ACCESS_DE=0 KEY_PARAMETER_GET=0 \
            DISPLAY_CMD_SETVIDEOSIZE_POSITION=0 DEINTERLACE_IOWR=0 DEINTERLACE_FORMAT=4 NEW_DISPLAY_DOUBLE_STREAM_NEED_NV21=1 OUTPUT_PIXEL_FORMAT=1 NOT_DROP_FRAME=1 \
            SOUND_DEVICE_SET_RAW_FLAG=0 NATIVE_WIN_DISPLAY_CMD_GETDISPFPS=0 IMG_NV21_4K_ALIGN=0 DEINTERLACE_ADDR_64=0

DEFINES +=  WATERMARK_ENABLE HAVE_PRCTL WATERMARK ADAS_ENABLE


}else{
    message("Host is ubuntu,请选择pc-qt构建套件")
    message("编译PC程序注释掉 DEFINES += APP_BUILD_ARM")

    QT      += widgets
#    HEADERS += \
#        main/_demo_/FakeKeysForm.h \
#        main/_demo_/McuDevice.h \
#        main/_demo_/FakeCanbusDataFrame.h
#    SOURCES += \
#        main/_demo_/FakeKeysForm.cpp \
#        main/_demo_/McuDevice.cpp
#    FORMS   += \
#        main/_demo_/FakeKeysForm.ui

#    HEADERS += main/data/pc/CanDataWrap.h
#    SOURCES += main/data/pc/CanDataWrap.cpp

}

